package com.szholly.pro.watergas_server.ps.android.common;

public class NumUtils {
	// 不报错的返回数值
	public static Double toDouble(String value, Double defValue) {
		try {
			Double valueOf = Double.parseDouble(value);
			if (valueOf != null && valueOf != Double.NaN) {
				return valueOf;
			}
		} catch (Exception e) {
		}
		return defValue;
	}
}
